import myaxios from "../MyAxios";
import BASEURL from '@/http/BaseUrl'
const BMDURL = BASEURL.BMDURL

const xifangApi = {

 
  /** 查询所有的西方画 */
  queryAll(page) {
    let url = BMDURL+'/westDraw/queryAll'
    
   
  
    // let params = { page: 1 }
    return myaxios.get(url, page)
  },
  delete(params) {
    let url = BMDURL + '/westDraw/delete'
    return myaxios.post(url, params)
  },
  update(params) {
    let url = BMDURL + "/westDraw/update"
    return myaxios.post(url, params)
  },
  addXifang(params){
    let url='http://47.94.203.104:4100/v1/westDraw/add'
    return myaxios.post(url,params)
    }

//   addArtist(params){
//     // let url=BMDURL+'/Draw/add'
//     let url =' http://47.94.203.104:4100/v1/Draw/add'
//     return myaxios.post(url,params)
// },
// //修改
// update(params) {
//   let url = BMDURL + "/Draw/update"
//   return myaxios.post(url, params)
// },

  

}

export default xifangApi;